home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3885 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1011 b 

  1. Path: news.inet.fi!usenet
  2. From: Harri Halttunen <Harri.Halttunen@enermet.fi>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Performance: C vs. C++
  5. Date: Fri, 26 Jan 1996 17:34:45 +0200
  6. Organization: Telecom Finland News Service
  7. Message-ID: <3108F495.4828@enermet.fi>
  8. References: <30F6BAAC.12B5@iastate.edu> <4da9pn$a45@news.bridge.net> <4dnpl2$c8g@classic.iinet.com.au> <31032A4F.6695@iastate.edu>
  9. NNTP-Posting-Host: halttha.enermet.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (Win95; I)
  14.  
  15. Steve Lee wrote:
  16. > But in the FAQ it says that C++ doesn't do runtime type checking???
  17.  
  18. This is included into a new standard of C++.
  19.  
  20. Runtime type checking is done only when asked. Well... actually dynamic 
  21. type casting (dynamic_cast<...>()) does it as well.
  22.  
  23. There is a minor drawback if you use RTTI. The type information of a 
  24. class must be somewhere and it is included into a meta data of the 
  25. class. So, this increases the size of the object.
  26.